using Google.Protobuf;

namespace Shioho.Net 
{
    public interface IProtoMsgController
    {
        int ProtoId { get; }
    }

    public interface IProtoPushMsgController : IProtoMsgController
    {
        void Process(byte[] buffer);
    }

    /// <summary>
    /// req-resΪsend
    /// </summary>
    public interface IProtoSendMsgController : IProtoMsgController
    {
        byte[] GetBuffer(int seqId, IMessage data);
        void AddContext(int seqId, object context);
        void Process(int seqId, byte[] buffer);
    }
}
